package com.youlu.campus.admin.auth.common;

/**
 * 鉴权 常量定义
 * @author: zhuhuaiqi
 */
public class AuthConstants {
    /**
     * user auth
     */
    public static final String REDIS_AUTH_ROLE_ALL = "youlu:campus:auth:role:all";
    public static final String REDIS_AUTH_ROLE_ESOURCES = "youlu:campus:auth:role:resources:roleId:%s";
    public static final String REDIS_AUTH_USER_ROLE_IDS = "youlu:campus:auth:role:comId:%s:userId:%s";
    public static final String REDIS_AUTH_USER_RESOURCES = "youlu:campus:auth:resources:comId:%s:userId:%s";
    public static final String REDIS_AUTH_MENUS_ALL = "youlu:campus:auth:menus:all";
    public static final String REDIS_AUTH_USER_MENUS = "youlu:campus:auth:menus:comId:%s:userId:%s";
    public static final String REDIS_AUTH_USER_INFO = "youlu:campus:auth:user:userId:%s";
    public static final String REDIS_AUTH_USER_TOKEN = "youlu:campus:auth:token:userId:%s";

    public static final String REDIS_AUTH_COMPANY_EXISTS_DOMAIN = "youlu:campus:auth:company:exists:domain:%s";
    public static final String REDIS_AUTH_COMPANY_NOT_EXISTS_DOMAIN = "youlu:campus:auth:company:not:exists:domain:%s";
    /**
     * 公钥
     */
    public static final String REDIS_MSG_PUBLIC_KEY =
            "ymall:msg:public:key:%s";

    /**
     * 私钥
     */
    public static final String REDIS_MSG_PRIVATE_KEY =
            "ymall:msg:private:key:%s";
    /**
     * Redis Lock 分布式锁前缀
     */
    public static final String REDIS_LOCK_KEY =
            "ymall:redis:lock:key:%s";

}
